package com.lebang.medicalInquiry.mapper;

import com.lebang.medicalInquiry.model.po.PhysicianOrganizationRelevance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

@Mapper
public interface PhysicianOrganizationRelevanceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PhysicianOrganizationRelevance record);

    int insertSelective(PhysicianOrganizationRelevance record);

    PhysicianOrganizationRelevance selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PhysicianOrganizationRelevance record);

    int updateByPrimaryKey(PhysicianOrganizationRelevance record);

    String getOperatorByPhysicianId(@Param("physicianId") Integer physicianId);


    void addAllocationPhysician(@Param("organizationId")Integer organizationId, @Param("uuid")String uuid, @Param("ids") Set<Integer> physicianIdList);

    Set<Integer> getPIdsByOpeartorUuid(@Param("uuid")String uuid);

    void removeByPhysicianId(Integer physicianId);

    void removeByOUuid(String uuid);

}